﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    xmlns:c="clr-namespace:ShredTheLog.Controls;assembly=ShredTheLog.Controls"
    >

    <ToolTip x:Key="UserToolTip" Background="#F0F0F0" BorderBrush="#666666" BorderThickness="1">
        <ToolTip.Resources>
            <Style x:Key="HeaderTextBlock" TargetType="{x:Type TextBlock}">
                <Setter Property="Foreground" Value="#CC6622"/>
            </Style>
            <Style x:Key="SeparatorTextBlock" TargetType="{x:Type TextBlock}">
                <Setter Property="Text" Value="­­­·"/>
                <Setter Property="FontWeight" Value="Bold"/>
                <Setter Property="Foreground" Value="White"/>
            </Style>
            <Style x:Key="ContentTextBlock" TargetType="{x:Type TextBlock}">
            </Style>
            <Style TargetType="{x:Type Separator}">
                <Setter Property="Margin" Value="2"/>
                <Setter Property="Focusable" Value="false"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Separator}">
                            <Rectangle Fill="White" HorizontalAlignment="Stretch" Height="1"/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ToolTip.Resources>

        <StackPanel>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Name}" Style="{StaticResource HeaderTextBlock}"/>
                <TextBlock Style="{StaticResource SeparatorTextBlock}"/>
                <TextBlock Text="{Binding Path=Name}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
            <Separator/>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Age}" Style="{StaticResource HeaderTextBlock}"/>
                <TextBlock Style="{StaticResource SeparatorTextBlock}"/>
                <TextBlock Text="{Binding Path=Age}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
            <Separator/>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Country}" Style="{StaticResource HeaderTextBlock}"/>
                <TextBlock Style="{StaticResource SeparatorTextBlock}"/>
                <TextBlock Text="{Binding Path=Country, Converter={x:Static cnv:CountryConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
            <Separator/>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Knows}" Style="{StaticResource HeaderTextBlock}"/>
                <TextBlock Style="{StaticResource SeparatorTextBlock}"/>
                <TextBlock Text="{Binding Path=KnownLanguages, Converter={x:Static cnv:LanguagesConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
            <Separator/>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Learns}" Style="{StaticResource HeaderTextBlock}"/>
                <TextBlock Style="{StaticResource SeparatorTextBlock}"/>
                <TextBlock Text="{Binding Path=PracticingLanguages, Converter={x:Static cnv:LanguagesConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
        </StackPanel>
    </ToolTip>
</ResourceDictionary>